import Vue from "vue";
import Router from "vue-router";
import Login from "@/components/Login";
import Home from "@/components/Home";
import Score from "@/components/Score";
import ExamDetail from "@/components/ExamDetail";

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: "/",
      redirect: "/login"
    },
    {
      path: "/login",
      name: "Login",
      component: Login
    },
    {
      path: "/examdetail",
      name: "ExamDetail",
      component: ExamDetail
    },
    {
      path: "/home",
      name: "Home",
      component: Home
    },
    {
      path: "/score",
      name: "Score",
      component: Score
    }
  ]
});
